package org.misalen.web.server.exception;

import org.misalen.web.server.config.ErrorCode;
import org.misalen.web.server.config.ServerResult;

public class CustomerException extends Exception {

	private ServerResult serverResult;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public CustomerException(ErrorCode code) {
		this.serverResult = ServerResult.error(code);

	}

	public CustomerException(ErrorCode code, String message) {
		this.serverResult = ServerResult.error(code, message);
	}

	public ServerResult getServerResult() {
		return serverResult;
	}
}
